package com.yhb.controller;

import com.yhb.channel.ChannelFactory;
import me.edzh.spring.bootstrap.controller.BaseController;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@RestController
//@RequestMapping("/channel/pay")
public class PayChannelController extends BaseController {
    @Autowired
    private ChannelFactory factory;

    private final static Logger logger = Logger.getLogger(PayChannelController.class);

    @PostMapping("/{channelName}/signUp")
    public String signUp (
            HttpServletResponse response,
            @PathVariable("channelName") String channelName
    ) {
        return "";
//        String res = factory.getChannelByName(channelName).userSignUp();
//        return res;
    }
}

